

const http = require('http')
const server=http.createServer()

server.listen(3000 ,()=>{
    console.log('服务器启动成功了');
})

server.on('request',(req,res)=>{
    console.log('哟 来了老妹')
    res.end('hello')
})